package com.itcast.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.itcast.pojo.Type;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Repository
@Mapper
public interface TypeMapper extends BaseMapper<Type> {
    @Override
    List<Type> selectList(Wrapper<Type> wrapper);

    /**
     * @return 所有商品类型
     */
    List<Type> getAllType();
}
